home *** CD-ROM | disk | FTP | other *** search
-
-
-
- FSEEK(3) MINTLIB LIBRARY FUNCTIONS FSEEK(3)
-
-
- N✓NA✓AM✓ME✓E
- fseek, ftell, rewind - reposition a stream
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <stdio.h>
-
- fseek(FILE *stream, long offset, int mode);
-
- long ftell(FILE *stream);
-
- void rewind(FILE *stream);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- fseek sets the position of the next input or output opera-
- tion on the stream. The parameter offset determines the
- new position according to the parameter mode:
- SEEK_SET (0): offset bytes from the start of the file
- SEEK_CUR (1): offset bytes further than the current
- position
- SEEK_END (2): offset bytes from the end of the file
-
- rewind is equivalent to fseek(stream, 0L, 0), except that
- no value is returned.
-
- ftell returns the offset of the current byte relative to
- the beginning of the file associated with the named
- stream.
-
- fseek and rewind undo any effects of ungetc.
-
- After fseek or rewind, the next operation on a file opened
- for update may be either input or output.
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- fseek returns 0 on success, -1 on failure.
-
- ftell returns a position >= 0 on success, -1 on failure.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- l✓ls✓se✓ee✓ek✓k(✓(3✓3)✓),✓, f✓fo✓op✓pe✓en✓n(✓(3✓3)✓),✓, p✓po✓op✓pe✓en✓n(✓(3✓3)✓),✓, u✓un✓ng✓ge✓et✓tc✓c(✓(3✓3)✓)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-